<div class="layui-main layui-box">
    <form class="layui-form">
        {volist name='list' id='top'}
        <fieldset class="layui-elem-field">
            <legend class="custom-legend">{$top.name}</legend>
            <div class="layui-field-box">
                {volist name='top.child' id='menu'}
                <fieldset class="layui-elem-field layui-field-title">
                    <legend class="custom-legend">{$menu.name}</legend>
                    <div class="layui-field-box">
                        <div class="layui-form-item">
                            <label class="layui-form-label">权限选择</label>
                            <div class="layui-input-block">
                                {volist name='menu.child' id='action'}
                                <input type="checkbox" name="role_act_list[{$action.module_id}]" title="{$action.name}" value="{$action.module_id}">
                                {/volist}
                            </div>
                        </div>
                    </div>
                </fieldset>
                {/volist}
            </div>
        </fieldset>
        {/volist}
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="roleModule">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>